<?php
require_once './model/db.php';
class users extends DB{
    public $table_name="users";
    
    
    function __construct() {
        parent::getConnection();
    }
    public function select(){
        $query="SELECT * FROM ".$this->table_name;
        $result=  $this->query($query);
        $rows=array();
        while ($row=  mysql_fetch_assoc($result))
                $rows[]=$row;
        return $rows;
    }
}